<template>
  <div>
    demo01页面
     <router-link to="/demo02">Go to demo02</router-link>
     <a @click="ttt">js挑战</a>
    <HelloWorld :msg="msg"></HelloWorld>
  </div>
</template>
<script>
import HelloWorld from '../components/HelloWorld';

export default {
    data () {
        return {
            msg: '1544'
        };
    },
    name: 'demo01',
    components: {
        HelloWorld
    },
    methods: {
        ttt () {
            console.log(123);
            this.$router.push('/demo02');
        }
    }
};
</script>
<style scoped>

</style>
